package cn.beforedark.yygh.hosp.repository;

import cn.beforedark.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 医院存储库 <Hospital,String> Hospital文档类型  String主键类型
 */

@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {

    Hospital findByHoscode(String hoscode);

    List<Hospital> findByHosnameLike(String hosname);
}
